home *** CD-ROM | disk | FTP | other *** search
- /* defstd.h - standard definitions.
- (C) Copyright 1983, 1984, 1985 Gregory R. Mansfield - All Rights Reserved.
- G. R. Mansfield. 83/12/03.
- Ver 1.7-5828.
- */
-
- #ifndef _defstd /* allow more than 1 include of this file */
- #define _defstd
-
- #ifdef _lint /* provide a "void" for PC-Lint V 1.03 */
- #define void
- #endif
- /*lint +fzu Set the sizeof-is unsigned flag. */
-
- #define EOS 0 /* end of string */
- #define ERR -1
- #define FALSE 0
- #define F_NL 64 /* file name length */
- #define NULL 0 /* null pointer */
- #define S_CL 80 /* screen column limit */
- #define S_RL 25 /* screen row limit */
- #define TRUE 1
-
- typedef char boolean; /* TRUE/FALSE switch */
- typedef unsigned char BYTE; /* 8-bit quantity */
- typedef unsigned char uchar; /* unsigned character */
- typedef unsigned SEGBASE; /* 8086 segment register */
- typedef char *SEGSIZE; /* address in a segment */
- typedef unsigned int WORD; /* 16-bit quantity */
- typedef unsigned int uint; /* unsigned integer */
-
- #define abs(x) ((x) < 0 ? -(x) : (x))
- #define max(x,y) (((x) > (y)) ? (x) : (y))
- #define min(x,y) (((x) < (y)) ? (x) : (y))
-
- #endif
-